
/*
 * This is the extension activity for the 'receive' activity associated
 * with service '{http://www.pi4soa.org/AuctionHouse}AuctionHouse'
 * and behavior 'AuctionHouseProcess'. The name of the receive
 * activity is 'CreateAuctionListingReq'.
 */
package org.pi4soa.auctionhouse.auctionhouse.auctionhouseprocess;

import org.pi4soa.service.extensions.DefaultActivityExtension;
import org.pi4soa.service.extensions.ReceiveActivityExtension;
import org.pi4soa.service.extensions.ExtensionContext;
import org.pi4soa.service.Message;
import org.pi4soa.service.ServiceException;

/**
 * This class has been autogenerated to implement the custom
 * receive activity within a service endpoint description.
 */
public class CreateAuctionListingReqReceive extends DefaultActivityExtension
					implements ReceiveActivityExtension {

	/**
	 * The constructor for the receive activity extension.
	 */
	public CreateAuctionListingReqReceive() {
	}
	
	/**
	 * This method enables an activity extension to
	 * process a received message.
	 * 
	 * @param context The context
	 * @param message The received message
	 * @exception ServiceException Failed to process message
	 */
	public void processMessage(ExtensionContext context,
					Message message) throws ServiceException {

		System.err.println("AuctionServer: Received request:");
		System.err.println(message.getValue());
		
		// TODO: Add code to process the supplied message.

	}
}	